package com.ruoyi.project.order.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author L
 * @since 2020-08-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WorkOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(value = "orderId", type = IdType.AUTO)
    private Integer orderId;

    /**
     * 工人ID
     */
    @TableField("workerId")
    private Integer workerId;

    /**
     * 发布者ID
     */
    @TableField("publisherId")
    private Integer publisherId;
    /**
     * 审核者ID
     */
    @TableField("checkerId")
    private Integer checkerId;

    /**
     * 客户ID
     */
    @TableField("customerId")
    private Integer customerId;

    /**
     * 订单创建时间
     */
    @TableField("orderCreateTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderCreateTime;

    /**
     * 订单开始时间
     */
    @TableField("orderStartTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderStartTime;

    /**
     * 订单结束时间
     */
    @TableField("orderEndTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderEndTime;

    /**
     * 订单实际结束时间
     */
    @TableField("orderFinishTime")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderFinishTime;

    /**
     * 订单类型
     */
    @TableField("orderType")
    private Integer orderType;

    /**
     * 订单标题
     */
    @TableField("orderTitle")
    private String orderTitle;

    /**
     * 订单实施费
     */
    @TableField("orderMoney")
    private Double orderMoney;
    /**
     * 订单快递费
     */
    @TableField("orderPostMoney")
    private Double orderPostMoney;
    /**
     * 订单打车费
     */
    @TableField("orderCarMoney")
    private Double orderCarMoney;
    /**
     * 订单其他费
     */
    @TableField("orderOtherMoney")
    private Double orderOtherMoney;
    /**
     * 订单状态
     * <p>
     * 0.待确认
     * 1.处理中
     * 2.已完成
     * 3.已关闭
     * 4.审核成功
     * 5.审核失败
     * 6.已评价
     */
    @TableField("orderStatus")
    private Integer orderStatus;

    /**
     * 订单状态
     * 0.未审核
     * 1.审核成功
     * 2.审核失败
     */
    @TableField("checkStatus")
    private Integer checkStatus;

    /**
     * 订单评论
     */
    @TableField("orderComment")
    private String orderComment;

    /**
     * 订单内容
     */
    @TableField("orderContent")
    private String orderContent;


}
